module.exports = {
    //关闭eslent验证
    lintOnSave:false,

    devServer: {
        open: true, //是否自动弹出浏览器页面
        host: "localhost", 
        port: '10086',
        https: false,
        hotOnly: false, 
        proxy: {
            '/api': {
                target: 'http://localhost:8888', //API服务器的地址
                ws: true,  //代理websockets
                changeOrigin: true, // 虚拟的站点需要更管origin
                pathRewrite: {   //重写路径 比如'/api/aaa/ccc'重写为'/aaa/ccc'
                    '^/api': ''
                }
            },
            '/upload': {
                target: 'http://122.51.140.72:12345/upload',   // 服务器文件上传地址
                ws: true,  //代理websockets
                changeOrigin: true, // 虚拟的站点需要更管origin
                pathRewrite:{'^/upload':''}
            }
        },
    },

    productionSourceMap: false
}